package uk.ac.salfordcc.sccmobile;

import android.app.ActionBar;
import android.app.Activity;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageItemInfo;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.widget.TextView;
import android.widget.Toast;

/**
 * Created by bwarrington on 25/07/13.
 */
public class AboutThis extends Activity {
    private String mVersion;

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_about);

        ActionBar bar = getActionBar();
        bar.hide();

        try{
            PackageManager manager = this.getPackageManager();
            PackageInfo info = manager.getPackageInfo(this.getPackageName(), 0);
            final TextView vers = (TextView) findViewById(R.id.version_app);
            vers.setText(info.versionName);
        }
        catch (PackageManager.NameNotFoundException e){}
    }
}